package cn.ruituo;

import io.swagger.annotations.Api;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ImportResource;

//@EnableCaching
@Api(tags = "教务系统后端接口")
@SpringBootApplication
@MapperScan(basePackages = "cn.ruituo.dao")
//@ImportResource(value = "xxx.xml")
public class SprinbootApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {
        //WebMvcAutoConfiguration v=null;
        SpringApplication.run(SprinbootApplication.class, args);
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
         return builder.sources(SprinbootApplication.class);
    }
}
